import http from "@/utils/http";
import {GW} from "@/common/const";
/**
 * 拉取指标形态设置
 * @param {Object} option
 * @return {Promise} Array
 */
export function getList(option) {
  const url = `${GW}/smonitor/stock/setting/list`;
  const params = {
    ...option,
  };
  return http.get(url,  params);
}

/**
 * 上传指标形态设置
 * @param {Object} option
 * @return {Promise} Array
 */
export function update(option) {
  const url = `${GW}/smonitor/stock/setting/update`;
  const params = {
    ...option,
  };
  return http.post(url, params);
  
}
